package com.xt.purchasingsystem.controller.productDesign.proFileManagement.proFileDelManagement;

import com.xt.purchasingsystem.dto.DFileDto;
import com.xt.purchasingsystem.model.DFile;
import com.xt.purchasingsystem.service.productDesignService.proFileManageService.proFileDelManageService.ProductFilecheckService;
import com.xt.purchasingsystem.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping(value = "/productFilecheckController")
public class ProductFilecheckController {
    @Autowired
    private ProductFilecheckService productFilecheckService;


    /**
     * 分页查询菜单的接口
     *
     * @param dFileDto
     * @return
     */
    @PostMapping("/getAllDfile")
    public Result getAllDfile(@RequestBody DFileDto dFileDto) {
        return productFilecheckService.getAllDfile(dFileDto);
    }

    /**
     * 根据id查
     *
     * @param id
     * @return
     */
    @PutMapping("/selectByid/{id}")
    public Result selectByid(@PathVariable("id") Integer id) {
        return productFilecheckService.selectByid(id);
    }

    //产品审核的接口
    @PutMapping("/updateCheckTag")
    public Result updateCheckTag(@RequestBody DFile dFile) {
        return productFilecheckService.updateCheckTag(dFile);
    }



}
